<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>WIKINDX CLASS DOCUMENTATION</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="/wikindx2/docs/docs.css" type="text/css" />
</head>

<body bgcolor="#FFFFFF" text="#000000">
<h2>WIKINDX METHODS</h2>
<p><strong>Method:</strong><br />
  
  checkExists()
</p>
<p><strong>Class:</strong><br />

  <a href="publisherClass.html">PUBLISHER</a>
<p><strong>Method Call:</strong><br />
include_once("core/publisher/PUBLISHER.php");<br />
$publisher = new PUBLISHER($this-&gt;db);<br />
ARRAY $publisher->checkExists(STRING: $publisherName, STRING: $publisherLocation); </p>
<p><strong>Description:</strong><br />
  Prior to inserting or updating a publisher, this method should be called to check whether the new publisher already exists in the <em>WKX_publisher</em> table. If it does not, FALSE is returned; if it does, the publisher ID is returned ready for insertion into the <em>WKX_resource_misc</em> table. The match is case-insensitive.<p><strong>Usage:</strong>
<pre>
	$publisher = new PUBLISHER($this->db);
	list($id, $publisherType) = $publisher->checkExists("Virago", "Paris");
</pre>
<p align="right"><a href="../../index.html">WIKINDX home</a>
&nbsp;&nbsp;&nbsp;&nbsp;
<a href="../../usage/index.html">WIKINDX usage</a>
&nbsp;&nbsp;&nbsp;&nbsp;
<a href="../index.html">WIKINDX classes</a>
</p>
</body>

</html>
